Integrand size = 23, antiderivative size = 149 \[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\frac {2 (e x)^{1+m} \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},-\frac {2 i+2 i m+b d n}{4 b d n},-\frac {2 i+2 i m-3 b d n}{4 b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )}}{e (2+2 m-i b d n) \sqrt {1-e^{2 i a d} \left (c x^n\right )^{2 i b d}}} \]
2*(e*x)^(1+m)*hypergeom([-1/2, 1/4*(-2*I-2*I*m-b*d*n)/b/d/n],[1/4*(-2*I-2* I*m+3*b*d*n)/b/d/n],exp(2*I*a*d)*(c*x^n)^(2*I*b*d))*sin(d*(a+b*ln(c*x^n))) ^(1/2)/e/(2+2*m-I*b*d*n)/(1-exp(2*I*a*d)*(c*x^n)^(2*I*b*d))^(1/2)
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(488\) vs. \(2(149)=298\).
Time = 6.54 (sec) , antiderivative size = 488, normalized size of antiderivative = 3.28 \[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=2 x (e x)^m \left (-\frac {b d e^{i d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )} n x^{-i b d n} \sqrt {2-2 e^{2 i a d} \left (c x^n\right )^{2 i b d}} \left ((2 i+2 i m+b d n) x^{2 i b d n} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {i \left (1+m+\frac {3}{2} i b d n\right )}{2 b d n},-\frac {2 i+2 i m-7 b d n}{4 b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )+(-2 i-2 i m+3 b d n) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {2 i+2 i m+b d n}{4 b d n},-\frac {2 i+2 i m-3 b d n}{4 b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )\right )}{(2+2 m-i b d n) (2+2 m+3 i b d n) \left (2 i+2 i m+b d n+e^{2 i d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )} (-2 i-2 i m+b d n)\right ) \sqrt {-i e^{-i a d} \left (c x^n\right )^{-i b d} \left (-1+e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}}+\frac {\sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \sin \left (d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right )}{b d n \cos \left (d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right )+2 (1+m) \sin \left (d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right )}\right ) \]
2*x*(e*x)^m*(-((b*d*E^(I*d*(a - b*n*Log[x] + b*Log[c*x^n]))*n*Sqrt[2 - 2*E ^((2*I)*a*d)*(c*x^n)^((2*I)*b*d)]*((2*I + (2*I)*m + b*d*n)*x^((2*I)*b*d*n) *Hypergeometric2F1[1/2, ((-1/2*I)*(1 + m + ((3*I)/2)*b*d*n))/(b*d*n), -1/4 *(2*I + (2*I)*m - 7*b*d*n)/(b*d*n), E^((2*I)*a*d)*(c*x^n)^((2*I)*b*d)] + ( -2*I - (2*I)*m + 3*b*d*n)*Hypergeometric2F1[1/2, -1/4*(2*I + (2*I)*m + b*d *n)/(b*d*n), -1/4*(2*I + (2*I)*m - 3*b*d*n)/(b*d*n), E^((2*I)*a*d)*(c*x^n) ^((2*I)*b*d)]))/((2 + 2*m - I*b*d*n)*(2 + 2*m + (3*I)*b*d*n)*(2*I + (2*I)* m + b*d*n + E^((2*I)*d*(a - b*n*Log[x] + b*Log[c*x^n]))*(-2*I - (2*I)*m + b*d*n))*x^(I*b*d*n)*Sqrt[((-I)*(-1 + E^((2*I)*a*d)*(c*x^n)^((2*I)*b*d)))/( E^(I*a*d)*(c*x^n)^(I*b*d))])) + (Sqrt[Sin[d*(a + b*Log[c*x^n])]]*Sin[d*(a - b*n*Log[x] + b*Log[c*x^n])])/(b*d*n*Cos[d*(a - b*n*Log[x] + b*Log[c*x^n] )] + 2*(1 + m)*Sin[d*(a - b*n*Log[x] + b*Log[c*x^n])]))
Time = 0.36 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.97, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {4996, 4994, 888}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx\) |
\(\Big \downarrow \) 4996 |
\(\displaystyle \frac {(e x)^{m+1} \left (c x^n\right )^{-\frac {m+1}{n}} \int \left (c x^n\right )^{\frac {m+1}{n}-1} \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )}d\left (c x^n\right )}{e n}\) |
\(\Big \downarrow \) 4994 |
\(\displaystyle \frac {(e x)^{m+1} \left (c x^n\right )^{-\frac {m+1}{n}+\frac {i b d}{2}} \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \int \left (c x^n\right )^{-\frac {1}{2} i b d+\frac {m+1}{n}-1} \sqrt {1-e^{2 i a d} \left (c x^n\right )^{2 i b d}}d\left (c x^n\right )}{e n \sqrt {1-e^{2 i a d} \left (c x^n\right )^{2 i b d}}}\) |
\(\Big \downarrow \) 888 |
\(\displaystyle \frac {2 (e x)^{m+1} \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{4} \left (-\frac {2 i (m+1)}{b d n}-1\right ),-\frac {2 i m-3 b d n+2 i}{4 b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )}}{e (-i b d n+2 m+2) \sqrt {1-e^{2 i a d} \left (c x^n\right )^{2 i b d}}}\) |
(2*(e*x)^(1 + m)*Hypergeometric2F1[-1/2, (-1 - ((2*I)*(1 + m))/(b*d*n))/4, -1/4*(2*I + (2*I)*m - 3*b*d*n)/(b*d*n), E^((2*I)*a*d)*(c*x^n)^((2*I)*b*d) ]*Sqrt[Sin[d*(a + b*Log[c*x^n])]])/(e*(2 + 2*m - I*b*d*n)*Sqrt[1 - E^((2*I )*a*d)*(c*x^n)^((2*I)*b*d)])
3.1.75.3.1 Defintions of rubi rules used
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p *((c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/n, (m + 1)/n + 1 , (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] && !IGtQ[p, 0] && (ILt Q[p, 0] || GtQ[a, 0])
Int[((e_.)*(x_))^(m_.)*Sin[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_), x_Symbol] : > Simp[Sin[d*(a + b*Log[x])]^p*(x^(I*b*d*p)/(1 - E^(2*I*a*d)*x^(2*I*b*d))^p ) Int[(e*x)^m*((1 - E^(2*I*a*d)*x^(2*I*b*d))^p/x^(I*b*d*p)), x], x] /; Fr eeQ[{a, b, d, e, m, p}, x] && !IntegerQ[p]
Int[((e_.)*(x_))^(m_.)*Sin[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(d_.)]^(p_ .), x_Symbol] :> Simp[(e*x)^(m + 1)/(e*n*(c*x^n)^((m + 1)/n)) Subst[Int[x ^((m + 1)/n - 1)*Sin[d*(a + b*Log[x])]^p, x], x, c*x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p}, x] && (NeQ[c, 1] || NeQ[n, 1])
\[\int \left (e x \right )^{m} \sqrt {\sin \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}d x\]
Exception generated. \[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> Error detected within library code: inte grate: implementation incomplete (has polynomial part)
\[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\int \left (e x\right )^{m} \sqrt {\sin {\left (a d + b d \log {\left (c x^{n} \right )} \right )}}\, dx \]
\[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\int { \left (e x\right )^{m} \sqrt {\sin \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )} \,d x } \]
\[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\int { \left (e x\right )^{m} \sqrt {\sin \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )} \,d x } \]
Timed out. \[ \int (e x)^m \sqrt {\sin \left (d \left (a+b \log \left (c x^n\right )\right )\right )} \, dx=\int \sqrt {\sin \left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right )}\,{\left (e\,x\right )}^m \,d x \]